package me.lovatcat.springboot.demo.task;

import me.lovetcat.common.util.DateUtil;
import org.springframework.stereotype.Component;

/**
 * 使用定时任务
 * @author acat on 2017-01-12 15:04
 */
@Component
public class ScheduledTasks {

    //@Scheduled(fixedRate = 5000)
    public void reportCurrentTime() {
        System.out.println("现在时间：" + DateUtil.getSystemTime());
    }

}
